﻿@{
    ViewBag.Title = "SoftwareList";
    Layout = "~/Views/Shared/_Layout.cshtml";

}
@using Webdiyer.WebControls.Mvc
@model PagedList<ElingOA6_DSJCJ.Model.SoftwareEntry>
         
           
<div class="main2">
    <div class="paging-title background1000"><span>当前位置：软件列表 > @ViewData["softwareCatalogName"]</span><h2>@ViewData["softwareCatalogName"]</h2></div>
    <div class="paging-content3">
        <div class="sp-left">
            <table width="600" border="0" cellpadding="0" cellspacing="0" class="fixedTable" style="margin-top: 5px;">
                <tr>
                    <td width="38px" class="db">
                        &nbsp;</td>
                    <td class="db" style="font-weight: bold">
                        标题</td>
                    <td width="300px" class="db" align="center" style="font-weight: bold">
                        下载次数</td>
                </tr>
                @{
                    foreach (var item in Model)
                    {      
                    <tr>
                        <td height="25" align="center" class="db">
                            <img src="/Content/images/icon.jpg" width="6" height="6" /></td>
                        <td class="subTitle db">
                            <a href="SoftwareDownLoad?softwareEntryID=@item.FSoftwareEntryID" target="_blank">@item.FSoftwareName</a> </td>
                        <td align="center" class="db">@item.FDownloadCount</td>
                        <td align="center" class="db">
                        </td>
                    </tr>
                    }
                }
                <tr>
                    <td colspan="5">
                        <table width="100%" cellspacing="0" cellpadding="0" height="35">
                            <tr>
                                <td style=" padding:0 20px;">
                                    <span style="float: left; display:block;">共 @Model.TotalItemCount 条记录，页 @Model.CurrentPageIndex/@Model.TotalPageCount</span>
                                    <span style="float:right; display:block;">
                                    @Html.Pager(Model, new PagerOptions { ContainerTagName = "span", PageIndexParameterName = "id", AlwaysShowFirstLastPageNumber = true, HorizontalAlign = "right", FirstPageText = "首页", LastPageText = "末页" }, new { style = "" })
                                    </span>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>

